<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path1 = request.getContextPath();
String basePath1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path1+"/";

	String	role,name="已登录";
	String	login = "";
	if(request.getSession().getAttribute("login") != null){
		login = (String)request.getSession().getAttribute("login");
		if(login.equals("yes")){//登陆了
		String	right = (String)request.getSession().getAttribute("right");
		if(right.equals("user")){
			name = "欢迎用户：" + (String)request.getSession().getAttribute("name");
		}else if(right.equals("manager")){
			name = "欢迎管理员：" + (String)request.getSession().getAttribute("name");
		}else {
			name = "欢迎超级管理员：" + (String)request.getSession().getAttribute("name");
		}
	}
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath1%>">
    
    <title>广东省科技项目监督与管理服务信息化系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="ext-3.0/resources/css/ext-all.css" />
	
	<script src="ext-3.0/adapter/ext/ext-base.js" type="text/javascript"></script>
	<script src="ext-3.0/ext-all.js"  type="text/javascript"></script>
	<script type="text/javascript" src="ext-3.0/adapter/ext/ext-basex.js"></script>
	
	<script src="ext-3.0/src/locale/ext-lang-zh_CN.js" type="text/javascript" charset="utf-8"></script>
	
	<script> 
 	var failMessageBoolean= '<%=session.getAttribute("failMessageBoolean")%>' ; 
	</script>

	<script type="text/javascript" src="js/login.js"></script>


  </head>
  <body>
  <table width="1004" cellspacing="0" cellpadding="0" border="0" bgcolor="#FFFFFF" align="center">
   <tbody>
    <tr>
     <td>
      <table width="966" cellspacing="0" cellpadding="0" border="0" align="center">
       <tbody>
        <tr>
         <td>
          <iframe width="100%" scrolling="no" height="134" frameborder="0" src="head/head.jsp"></iframe></td>
         </tr>
       </tbody>
      </table>
      <table width="966" cellspacing="0" cellpadding="0" border="0" align="center">
       <tbody>
        <tr>
         <td height="6"></td>
        </tr>
       </tbody>
       <s:if test="#session.login == 'yes' ">
					<tr align="center" color="red"><strong><%=name %></strong></tr>
					<!-- <tr align="center" color="blue"><a href="/projectMonitor/system/logout.action" target="_top" class="p15"><b>退　　出</b></a></tr> -->
         		</s:if>
      </table>
      <table width="966" cellspacing="0" cellpadding="0" border="0" align="center">
       <tbody>
        <tr>
         <td width="219">
         	<table>
         	<tbody>
         			
				<s:else>
         			<tr>
         				<td>
         			   <div id='loginForm' ></div>  
						</td>
         			</tr>
				</s:else>
         		<tr>
         			<td>
         		   <iframe width="213" scrolling="no" height="270" frameborder="0" src="newstips/newstips.jsp"></iframe>
         			</td>
         		</tr>

         		</tbody>
         	</table>
         </td>
         <td width="527" align="center">
          <iframe width="100%" scrolling="no" height="270" frameborder="0" src="notice/index.jsp"></iframe>
         </td>
         <td width="219" align="right">
         <iframe width="100%" scrolling="no" height="280" frameborder="0" src="service/service.jsp"></iframe>
         </td>
        </tr>
       </tbody>
      </table>
      <table width="966" cellspacing="0" cellpadding="0" border="0" align="center">
       <tbody>
        <tr>
         <td>
          <iframe width="100%" scrolling="no" height="40" frameborder="0" src="tail/tail.jsp"></iframe>
         </td>
        </tr>
       </tbody>
      </table>
     </td>
    </tr>
   </tbody>
  </table>

  </body>
  </html>
